package com.mlx.meng.tool;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @description: 用于映射数据权限表的表名、字段名、权限表达式三个属性；因为这三个属性不同的人设计的名称不一样；
 * @DateTime: 2021-04-14 19:33
 * @author: 蒙利幸
 * @version: 1.0
 **/
@ConfigurationProperties(prefix = "data")
public class DataPermissionProperties {

    /**
     * Table:     sys_data_permission
     * Column:    table_name
     * Nullable:  true
     */
    private String tableName = "tableName";

    /**
     * Table:     sys_data_permission
     * Column:    field_name
     * Nullable:  true
     */
    private String fieldName = "fieldName";

    /**
     * Table:     sys_data_permission
     * Column:    permissions
     * Nullable:  true
     */
    private String permissions = "permissions";

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getPermissions() {
        return permissions;
    }

    public void setPermissions(String permissions) {
        this.permissions = permissions;
    }
}
